home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
326-350
/
disk_339
/
pcq
/
examples
/
wherefrom.p
< prev
next >
Wrap
Text File
|
1992-05-06
|
375b
|
19 lines
Program WhereFrom;
{$I ":Include/DOS.i"}
var
stdfile : FileHandle;
begin
{ Calling Input() will always give you the filehandle of standard
input, since that's where the startup code gets it from }
stdfile := DOSInput();
if IsInteractive(stdfile) then
writeln('Input is coming from the console.')
else
writeln('Input is comming from a file.');
end.